package com.usermanage.Service;

import com.ordercore.Util.ResponseData.ResponseData;
import com.usermanage.beanParam.ContractRealTimePriceBean;
import com.usermanage.util.JsonData;

import java.util.List;
import java.util.Map;
import java.util.Optional;

public interface ContractRealTimePriceService {

    JsonData save(ContractRealTimePriceBean bean);

    List<ContractRealTimePriceBean> findAllList(String key,String contract_id, String page, String size,String type);

    int getAllListCount(String key,String contract_id,String type);

    int getSkuBySkuCodeAndContractId(String sku_code,String contract_id,String type);

    List<ContractRealTimePriceBean> findListBySkuCode(String sku_code);

    List<ContractRealTimePriceBean> getSkuBySkuCodeAndContractIdDetail(String sku_code, String contract_id);

    List<ContractRealTimePriceBean> getSkuBySkuCodeAndContractIdDetailOfPm(String sku_code, String contract_id);

    List<ContractRealTimePriceBean> getSkuBySkuCodeSetAndContractIdDetail(String sku_code_set, String contract_id,String page,String size,String key);

    int getCountByContractId(String contract_id,String key);

    JsonData update(ContractRealTimePriceBean bean);

    Optional<ContractRealTimePriceBean> findById(int id);

    List<ContractRealTimePriceBean> saveAll(List<ContractRealTimePriceBean> list);

    JsonData syncSku(Map map,String type);
}

